<!DOCTYPE HTML>
<html lang="en" >
    <!-- Start book  -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>字体样式 | </title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../../md/CSS/style/box.html" />
    
    
    <link rel="prev" href="../../../md/CSS/style/readme.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="2.3.1"
        data-chapter-title="字体样式"
        data-filepath="md/CSS/style/font.md"
        data-basepath="../../.."
        data-revision="Tue Sep 19 2017 14:58:58 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/HTML5/readme.html">
            
                
                    <a href="../../../md/HTML5/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/HTML5/20170719HTML.html">
            
                
                    <a href="../../../md/HTML5/20170719HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        什么是HTML
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/HTML5/biaoqian.html">
            
                
                    <a href="../../../md/HTML5/biaoqian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/HTML5/form.html">
            
                
                    <a href="../../../md/HTML5/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/HTML5/form-type.html">
            
                
                    <a href="../../../md/HTML5/form-type.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        form标签的类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/HTML5/20170721HTML.html">
            
                
                    <a href="../../../md/HTML5/20170721HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        其他标签的使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/CSS/readme.html">
            
                
                    <a href="../../../md/CSS/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/CSS/20170722CSS.html">
            
                
                    <a href="../../../md/CSS/20170722CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        什么是CSS
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/CSS/selector.html">
            
                
                    <a href="../../../md/CSS/selector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="md/CSS/selector/tongpei.html">
            
                
                    <a href="../../../md/CSS/selector/tongpei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="md/CSS/selector/yuansu.html">
            
                
                    <a href="../../../md/CSS/selector/yuansu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="md/CSS/selector/qunzu.html">
            
                
                    <a href="../../../md/CSS/selector/qunzu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="md/CSS/selector/guanxi.html">
            
                
                    <a href="../../../md/CSS/selector/guanxi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="md/CSS/selector/shuxing.html">
            
                
                    <a href="../../../md/CSS/selector/shuxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="md/CSS/selector/weilei.html">
            
                
                    <a href="../../../md/CSS/selector/weilei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="md/CSS/selector/weiduixiang.html">
            
                
                    <a href="../../../md/CSS/selector/weiduixiang.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/CSS/style/readme.html">
            
                
                    <a href="../../../md/CSS/style/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        常用样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.3.1" data-path="md/CSS/style/font.html">
            
                
                    <a href="../../../md/CSS/style/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="md/CSS/style/box.html">
            
                
                    <a href="../../../md/CSS/style/box.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="md/CSS/style/border.html">
            
                
                    <a href="../../../md/CSS/style/border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="md/CSS/style/paragraph.html">
            
                
                    <a href="../../../md/CSS/style/paragraph.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.4.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="md/CSS/style/background.html">
            
                
                    <a href="../../../md/CSS/style/background.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.5.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="md/CSS/style/float.html">
            
                
                    <a href="../../../md/CSS/style/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="md/CSS/style/position.html">
            
                
                    <a href="../../../md/CSS/style/position.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.7.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="md/CSS/style/animation.html">
            
                
                    <a href="../../../md/CSS/style/animation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.8.</b>
                        
                        动画及过渡效果
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="md/CSS/style/iconfont.html">
            
                
                    <a href="../../../md/CSS/style/iconfont.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.9.</b>
                        
                        外部icon图标库的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="md/CSS/style/sanjiaoxing.html">
            
                
                    <a href="../../../md/CSS/style/sanjiaoxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.10.</b>
                        
                        利用border画三角形
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="md/CSS/style/xiaojiao.html">
            
                
                    <a href="../../../md/CSS/style/xiaojiao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.11.</b>
                        
                        对话框旁边的小角制作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="md/CSS/style/flex.html">
            
                
                    <a href="../../../md/CSS/style/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.12.</b>
                        
                        弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/CSS/idea/readme.html">
            
                
                    <a href="../../../md/CSS/idea/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        小技巧
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="md/CSS/idea/caret-color.html">
            
                
                    <a href="../../../md/CSS/idea/caret-color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        光标和placeholder颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="md/CSS/idea/background.html">
            
                
                    <a href="../../../md/CSS/idea/background.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        部分背景透明
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/mobile/readme.html">
            
                
                    <a href="../../../md/mobile/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        移动端相关
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" >
            
            <span><b>3.1.</b> [媒体特性与Responsive设计]</span>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="md/mobile/viewport.html">
            
                
                    <a href="../../../md/mobile/viewport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        视口
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="md/mobile/responsive.html">
            
                
                    <a href="../../../md/mobile/responsive.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        响应式网页
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/javascript/readme.html">
            
                
                    <a href="../../../md/javascript/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        JavaScript
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="md/javascript/strict.html">
            
                
                    <a href="../../../md/javascript/strict.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        JavaScript的严格模式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="md/javascript/value.html">
            
                
                    <a href="../../../md/javascript/value.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        变量
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" >
            
            <span><b>4.3.</b> [对象]</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1" data-path="md/javascript/string.html">
            
                
                    <a href="../../../md/javascript/string.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.1.</b>
                        
                        String
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.2" data-path="md/javascript/array.html">
            
                
                    <a href="../../../md/javascript/array.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.2.</b>
                        
                        Array
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.3" data-path="md/javascript/date.html">
            
                
                    <a href="../../../md/javascript/date.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.3.</b>
                        
                        Date
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.4" data-path="md/javascript/number.html">
            
                
                    <a href="../../../md/javascript/number.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.4.</b>
                        
                        Number
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.5" data-path="md/javascript/math.html">
            
                
                    <a href="../../../md/javascript/math.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.5.</b>
                        
                        Math
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="md/javascript/yunsuanfu.html">
            
                
                    <a href="../../../md/javascript/yunsuanfu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="md/javascript/yuju.html">
            
                
                    <a href="../../../md/javascript/yuju.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.5.</b>
                        
                        语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="md/javascript/function.html">
            
                
                    <a href="../../../md/javascript/function.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.6.</b>
                        
                        函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="md/javascript/time.html">
            
                
                    <a href="../../../md/javascript/time.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.7.</b>
                        
                        定时器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="md/javascript/dom.html">
            
                
                    <a href="../../../md/javascript/dom.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.</b>
                        
                        DOM操作
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.8.1" data-path="md/javascript/search.html">
            
                
                    <a href="../../../md/javascript/search.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.1.</b>
                        
                        查找
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.2" data-path="md/javascript/add.html">
            
                
                    <a href="../../../md/javascript/add.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.2.</b>
                        
                        增加
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.3" data-path="md/javascript/remove.html">
            
                
                    <a href="../../../md/javascript/remove.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.3.</b>
                        
                        移除
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.9" data-path="md/javascript/HTML-JavaScript.html">
            
                
                    <a href="../../../md/javascript/HTML-JavaScript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.</b>
                        
                        在HTML中使用JavaScript
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.10" data-path="md/javascript/CSS-javascript.html">
            
                
                    <a href="../../../md/javascript/CSS-javascript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.</b>
                        
                        JavaScript控制样式和属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.11" data-path="md/javascript/json.html">
            
                
                    <a href="../../../md/javascript/json.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.11.</b>
                        
                        JSON相关
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../../" ></a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x5B57;&#x4F53;&#x6837;&#x5F0F;">&#x5B57;&#x4F53;&#x6837;&#x5F0F;</h1>
<h2 id="fontfamily">font-family</h2>
<p>&#x8BBE;&#x7F6E;&#x6587;&#x5B57;&#x7684;&#x5B57;&#x4F53;</p>
<ol>
<li>&#x53EF;&#x4EE5;&#x4F20;&#x5165;&#x591A;&#x4E2A;&#x503C;&#xFF0C;&#x7528;&#x9017;&#x53F7;&#x9694;&#x5F00;</li>
<li>&#x8BFB;&#x53D6;&#x7684;&#x987A;&#x5E8F;&#x662F;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#xFF0C;&#x5982;&#x679C;&#x5DE6;&#x4FA7;&#x5B57;&#x4F53;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5219;&#x8BFB;&#x4E0B;&#x4E00;&#x4F4D;&#xFF0C;&#x76F4;&#x5230;&#x4F7F;&#x7528;&#x7CFB;&#x7EDF;&#x5B57;&#x4F53;</li>
<li>&#x8BBE;&#x7F6E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5EFA;&#x8BAE;&#x5148;&#x5199;&#x897F;&#x6587;&#x5B57;&#x4F53;&#x3001;win&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3001;mac&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3001;&#x901A;&#x7528;&#x7684;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3002;</li>
</ol>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong>
&#x5047;&#x5982;&#x8BBE;&#x8BA1;&#x4E2D;&#x7528;&#x5230;&#x4E86;&#x975E;&#x4E3B;&#x6D41;&#x5B57;&#x4F53;</p>
<ol>
<li>&#x7248;&#x6743;&#x95EE;&#x9898;</li>
<li>&#x8003;&#x8651;&#x5B57;&#x4F53;&#x5E93;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x897F;&#x6587;&#x5B57;&#x4F53;&#x5E93;&#x8FD8;&#x53EF;&#x4EE5;&#xFF08;&#x5927;&#x5C0F;&#x63A7;&#x5236;&#x5728;300k&#xFF09;&#xFF0C;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x5C31;&#x529D;&#x5176;&#x653E;&#x5F03;&#x3002;</li>
</ol>
<p>&#x6309;&#x7406;&#x6765;&#x8BF4;&#xFF0C;&#x5927;&#x591A;&#x6570;&#x7F51;&#x7AD9;&#x7684;&#x4E3B;&#x8981;&#x76EE;&#x6807;&#x5E02;&#x573A;&#x8FD8;&#x662F; Windows &#x7528;&#x6237;&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x7406;&#x8BBA;&#x4E0A;&#x8FD9;&#x4E2A;&#x624D;&#x662F;&#x5408;&#x7406;&#x7684;&#x58F0;&#x660E;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">Font-family</span>:<span class="hljs-value"> Helvetica, Tahoma, Arial, <span class="hljs-string">&quot;Microsoft YaHei&quot;</span>, <span class="hljs-string">&quot;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&quot;</span>, SimSun, <span class="hljs-string">&quot;&#x5B8B;&#x4F53;&quot;</span>, STXihei, <span class="hljs-string">&quot;&#x534E;&#x6587;&#x7EC6;&#x9ED1;&quot;</span>, Heiti, &#x201C;&#x9ED1;&#x4F53;&#x201D;, sans-serif
</span></span></code></pre>
<h2 id="fontsize">font-size</h2>
<p>&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#xFF0C;&#x53EF;&#x4EE5;&#x4F20;&#x5177;&#x4F53;&#x503C;&#xFF0C;&#x6216;&#x767E;&#x5206;&#x6BD4;&#xFF08;&#x57FA;&#x4E8E;&#x5B83;&#x7684;&#x7236;&#x5143;&#x7D20;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x6765;&#x8BA1;&#x7B97;&#xFF09;</p>
<pre><code class="lang-css"><span class="hljs-class">.test</span><span class="hljs-rules">{
    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">50px</span></span></span>;
}</span>
</code></pre>
<h2 id="fontweight">font-weight</h2>
<p>&#x63A7;&#x5236;&#x52A0;&#x7C97;&#x6548;&#x679C;,&#x9ED8;&#x8BA4;normal&#xFF0C;&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;</p>
<ul>
<li>normal&#xFF1A;&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;&#x3002;&#x76F8;&#x5F53;&#x4E8E;&#x6570;&#x5B57;&#x503C;400</li>
<li>bold&#xFF1A;&#x7C97;&#x4F53;&#x3002;&#x76F8;&#x5F53;&#x4E8E;&#x6570;&#x5B57;&#x503C;700</li>
<li>bolder&#xFF1A;&#x5B9A;&#x4E49;&#x6BD4;&#x7EE7;&#x627F;&#x503C;&#x66F4;&#x91CD;&#x7684;&#x503C;</li>
<li>lighter&#xFF1A;&#x5B9A;&#x4E49;&#x6BD4;&#x7EE7;&#x627F;&#x503C;&#x66F4;&#x8F7B;&#x7684;&#x503C;</li>
<li><code>&lt;integer&gt;</code>&#xFF1A;&#x7528;&#x6570;&#x5B57;&#x8868;&#x793A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x7C97;&#x7EC6;&#x3002;&#x53D6;&#x503C;&#x8303;&#x56F4;&#xFF1A;100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900</li>
</ul>
<pre><code class="lang-css"><span class="hljs-class">.test</span><span class="hljs-rules">{
    <span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> bold</span></span>;
}</span>
</code></pre>
<h2 id="fontstyle">font-style</h2>
<p>&#x63A7;&#x5236;&#x659C;&#x4F53;,&#x9ED8;&#x8BA4;normal</p>
<ul>
<li>normal&#xFF1A;&#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;</li>
<li>italic&#xFF1A;&#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x659C;&#x4F53;&#x3002;&#x5BF9;&#x4E8E;&#x6CA1;&#x6709;&#x8BBE;&#x8BA1;&#x659C;&#x4F53;&#x7684;&#x7279;&#x6B8A;&#x5B57;&#x4F53;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x4F7F;&#x7528;&#x659C;&#x4F53;&#x5916;&#x89C2;&#x5C06;&#x5E94;&#x7528;oblique</li>
<li>oblique&#xFF1A;&#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x503E;&#x659C;&#x7684;&#x5B57;&#x4F53;&#x3002;&#x4EBA;&#x4E3A;&#x7684;&#x4F7F;&#x6587;&#x5B57;&#x503E;&#x659C;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x53BB;&#x9009;&#x53D6;&#x5B57;&#x4F53;&#x4E2D;&#x7684;&#x659C;&#x4F53;&#x5B57;<pre><code class="lang-css"><span class="hljs-class">.test</span><span class="hljs-rules">{
  <span class="hljs-rule"><span class="hljs-attribute">font-style</span>:<span class="hljs-value"> italic</span></span>;
}</span>
</code></pre>
</li>
</ul>
<h2 id="fontvariant">font-variant</h2>
<p>&#x63A7;&#x5236;&#x897F;&#x6587;&#x5B57;&#x4F53;&#xFF0C;small-caps&#x4F1A;&#x8F6C;&#x6362;&#x5B57;&#x6BCD;&#x4E3A;&#x5927;&#x5199;,&#x4F46;&#x662F;&#x7528;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#x7684;&#x5C3A;&#x5BF8;&#xFF0C;&#x9ED8;&#x8BA4;normal</p>
<ul>
<li>normal&#xFF1A;&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;</li>
<li>small-caps:&#x5C0F;&#x578B;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#x5B57;&#x4F53;<pre><code class="lang-css"><span class="hljs-class">.test</span><span class="hljs-rules">{
  <span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> small-caps</span></span>;
}</span>
</code></pre>
</li>
</ul>
<h2 id="font&#x7684;&#x901F;&#x8BB0;&#x5C5E;&#x6027;">font&#x7684;&#x901F;&#x8BB0;&#x5C5E;&#x6027;</h2>
<p>&#x683C;&#x5F0F;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">font</span>:<span class="hljs-value"> [ [ &lt;<span class="hljs-string">&apos; font-style &apos;</span>&gt; || &lt;<span class="hljs-string">&apos; font-variant &apos;</span>&gt; || &lt;<span class="hljs-string">&apos; font-weight &apos;</span>&gt; ]? &lt;<span class="hljs-string">&apos; font-size &apos;</span>&gt; [ / &lt;<span class="hljs-string">&apos; line-height &apos;</span>&gt; ]? &lt;<span class="hljs-string">&apos; font-family &apos;</span>&gt; ] | caption | icon | menu | message-box | small-caption | status-bar
</span></span></code></pre>
<p>&#x5B9E;&#x9645;&#x5199;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-class">.test</span><span class="hljs-rules">{
    <span class="hljs-rule"><span class="hljs-attribute">font</span>:<span class="hljs-value"> italic small-caps bold <span class="hljs-number">50px</span>/<span class="hljs-number">100%</span> <span class="hljs-string">&quot;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&quot;</span>,<span class="hljs-string">&quot;&#x9ED1;&#x4F53;&quot;</span>,<span class="hljs-string">&quot;&#x5B8B;&#x4F53;&quot;</span></span></span>;
}</span>
</code></pre>
<p>&#x6CE8;&#x610F;&#xFF1A;</p>
<ul>
<li>&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x6587;&#x672C;&#x7279;&#x6027;&#x3002;&#x8BE5;&#x5C5E;&#x6027;&#x662F;&#x590D;&#x5408;&#x5C5E;&#x6027;&#x3002;</li>
<li><code>&lt;&apos; font-size &apos;&gt; &#x548C; &lt;&apos; font-family &apos;&gt;</code> &#x662F;&#x4E0D;&#x53EF;&#x5FFD;&#x7565;&#x7684;&#x3002;&#x6BCF;&#x4E2A;&#x53C2;&#x6570;&#x4EC5;&#x5141;&#x8BB8;&#x6709;&#x4E00;&#x4E2A;&#x503C;&#x3002;&#x5FFD;&#x7565;&#x7684;&#x5C06;&#x4F7F;&#x7528;&#x5176;&#x53C2;&#x6570;&#x5BF9;&#x5E94;&#x7684;&#x72EC;&#x7ACB;&#x5C5E;&#x6027;&#x7684;&#x9ED8;&#x8BA4;&#x503C;&#x3002;</li>
</ul>
<h2 id="color">color</h2>
<p>&#x63A7;&#x5236;&#x5B57;&#x4F53;&#x7684;&#x989C;&#x8272;&#xFF0C;&#x6709;&#x4EE5;&#x4E0B;&#x51E0;&#x79CD;&#x4E66;&#x5199;&#x65B9;&#x5F0F;&#xFF1A;</p>
<ol>
<li>&#x5355;&#x8BCD;&#x6A21;&#x5F0F;<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> red</span></span>;
</code></pre>
</li>
<li>16&#x8FDB;&#x5236;&#x6A21;&#x5F0F;
&#x5E38;&#x7528;&#x7684;&#x989C;&#x8272;&#xFF1A;&#xFF08;&#x51E0;&#x79CD;&#x7070;&#x8272;&#xFF09;#999999&#x3001;#cccccc&#x3001;#808080&#x3001;&#xFF08;&#x9ED1;&#x8272;&#xFF09;#333333<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-hexcolor">#FF0000</span></span></span>;
</code></pre>
</li>
<li>rgba&#x6A21;&#x5F0F;
a&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x900F;&#x660E;&#x5EA6;&#x7684;&#x989C;&#x8272;&#x503C;&#xFF0C;&#x900F;&#x660E;&#x5EA6;&#x53D6;&#x503C;&#x8303;&#x56F4;&#x662F;0-1<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-function">rgba</span>(<span class="hljs-number">255</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0.5</span>)</span></span>;
</code></pre>
</li>
<li>hsl&#x6A21;&#x5F0F;
&#x8272;&#x76F8;&#x3001;&#x9971;&#x548C;&#x5EA6;&#x3001;&#x660E;&#x5EA6;<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-function">hsl</span>(<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">21</span>)</span></span>;
</code></pre>
</li>
</ol>
<h2 id="textdecoration">text-decoration</h2>
<p>&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x4E09;&#x79CD;&#x4F4D;&#x7F6E;&#x7684;&#x7EBF;&#x6761;
|&#x503C;|&#x63CF;&#x8FF0;|
|--|--|
|none|&#x6CA1;&#x6709;&#x7EBF;&#x6761;|
|overline|&#x6587;&#x672C;&#x9876;&#x90E8;&#x7684;&#x6A2A;&#x7EBF;|
|line-through|&#x7A7F;&#x8FC7;&#x6587;&#x672C;&#x7684;&#x6A2A;&#x7EBF;|
|underline|&#x6587;&#x672C;&#x5E95;&#x90E8;&#x7684;&#x6A2A;&#x7EBF;|</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> underline</span></span>;
</code></pre>
<h2 id="textshadow">text-shadow</h2>
<p>x&#x548C;y&#x4ECE;&#x672C;&#x4F53;&#x5F00;&#x59CB;&#xFF0C;&#x589E;&#x52A0;&#x5219;&#x5F80;&#x53F3;&#x4E0B;&#x65B9;&#x5411;&#x504F;&#x79FB;&#xFF0C;&#x652F;&#x6301;&#x591A;&#x4E2A;&#x9634;&#x5F71;</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">text-shadow</span>:<span class="hljs-value"> <span class="hljs-number">5px</span> <span class="hljs-number">5px</span> <span class="hljs-number">20px</span> <span class="hljs-hexcolor">#fefcc9</span></span></span>;
</code></pre>
<ul>
<li>&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x8868;&#x793A;&#x6C34;&#x5E73;&#x65B9;&#x5411;&#x7684;&#x4F4D;&#x7F6E;</li>
<li>&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x8868;&#x793A;&#x5782;&#x76F4;&#x65B9;&#x5411;&#x7684;&#x4F4D;&#x7F6E;</li>
<li>&#x7B2C;&#x4E09;&#x4E2A;&#x503C;&#x8868;&#x793A;&#x6A21;&#x7CCA;&#x5EA6; &#xFF0C;&#x6570;&#x503C;&#x8D8A;&#x9AD8;&#xFF0C;&#x6A21;&#x7CCA;&#x5EA6;&#x8D8A;&#x9AD8;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A;0&#xFF0C;&#x6B64;&#x503C;&#x4E0D;&#x5141;&#x8BB8;&#x4E3A;&#x8D1F;&#x503C;</li>
<li>&#x7B2C;&#x56DB;&#x4E2A;&#x503C;&#x8868;&#x793A;&#x9634;&#x5F71;&#x989C;&#x8272;</li>
</ul>
<h2 id="&#x5D4C;&#x5165;&#x5B57;&#x4F53;">&#x5D4C;&#x5165;&#x5B57;&#x4F53;</h2>
<p>&#x5199;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-at_rule">@<span class="hljs-keyword">font-face</span></span> <span class="hljs-rules">{
    <span class="hljs-rule"><span class="hljs-attribute">font-family</span>:<span class="hljs-value">bgg</span></span>;
    <span class="hljs-rule"><span class="hljs-attribute">src</span>:<span class="hljs-value"> <span class="hljs-function">url</span>(font/VDUB.ttf)</span></span>;
}</span>
</code></pre>
<p>&#x8981;&#x7528;&#x6B64;&#x5B57;&#x4F53;&#x9700;&#x58F0;&#x660E;&#x5373;&#x53EF;</p>
<pre><code class="lang-css"><span class="hljs-tag">p</span><span class="hljs-rules">{
    <span class="hljs-rule"><span class="hljs-attribute">font-family</span>:<span class="hljs-value"> bgg</span></span>;
}</span>
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../../md/CSS/style/readme.html" class="navigation navigation-prev " aria-label="Previous page: 常用样式分类"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../../md/CSS/style/box.html" class="navigation navigation-next " aria-label="Next page: 盒子模型"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../../gitbook/app.js"></script>

    
    <script src="../../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"toggle-chapters":{},"splitter":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book  -->
</html>
